-- GENERATED SPELL FOR [Rainspeaker Oracle] --


function spell0_28025(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(15305,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28025', 3000, 1)
end

function spell1_28025(pUnit, Event) --@Warped Armor,n/a--
pUnit:FullCastSpellOnTarget(54919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28025', 10310, 1)
end

function Sorts_28025(pUnit, Event)
local choix_sorts_28025 = math.random(0, 1)
if choix_sorts_28025 == 0 then
pUnit:RegisterEvent('spell0_28025', 1, 1)
end
if choix_sorts_28025 == 1 then
pUnit:RegisterEvent('spell1_28025', 1, 1)
end
end

function mob28025_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28025', math.random(1500, 3000), 1)
end

function mob28025_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28025_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28025_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28025, 1, 'mob28025_Action')
RegisterUnitEvent(28025, 2, 'mob28025_Leave')
RegisterUnitEvent(28025, 3, 'mob28025_Kill')
RegisterUnitEvent(28025, 4, 'mob28025_Die')
